<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/6
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>

    </title>
</head>
<body>
<%
    String name = "rose";
    //request.setAttribute("aaa", name);
    //session.setAttribute("aaa", name);
    //pageContext.setAttribute("aaa", name);
    //application.setAttribute("aaa", name);

    ArrayList objects = new ArrayList<>();
    objects.add("a");
    objects.add("b");
    objects.add("c");
    request.setAttribute("aaa", objects);


%>
<%--${requestScope.aaa}--%>
<%--${sessionScope.aaa}--%>
<%--${pageScope.aaa}--%>
<%--${applicationScope.aaa}--%>
${requestScope.aaa}
</body>
</html>
